﻿<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>网站基本设置 - 修改问题分类</title>
<script src="/js/jquery.js" type="text/javascript"></script>
<script src="/js/jspublic.js" type="text/javascript"></script>
<script src="js/easyui/jquery.easyui.js" type="text/javascript"></script>
<script src="js/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<link href="style/right.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">

	$(function(){

		if (window.frameElement == null) self.location = '/manage';
		
		levelChange();
		
	});
	
	function levelChange()
	{
		if($("#a_classLevel").val() == "1")
		{
			$("#nullParent").show();
			$("#haveParent").hide();
		}
		else
		{
			$("#nullParent").hide();
			$("#haveParent").show();
		}
	};
	
</script>
</head>

<body>
<div class="zs_content">

	<div class="zs_quota">
		<h4>网站基本设置 - 修改问题分类</h4>
	</div>
	<div class="zs_sys">
		<form action="admin_update.aspx?T=b_askClass&id=[id]" method="post" name="form1" id="form1">
		<ul>
			<li>
				<label>分类名称：</label>
				<div class="controls">
					<input type="text" name="a_className" type="text" value="{g:B_askClass$a_className@a_classid=[id]}" maxlength="50" id="ModuleDir" />
				</div>
			</li>
			<li>
				<label>分类级别：</label>
				<div class="controls">
					{liebiao:B_askClass^0^a_classid asc^a_classid=[id]}
					<select name="a_classLevel" id="a_classLevel" onchange="levelChange(this.value)" style="width:10em;">
						<option value="1" selected {ruguo:{a_classLevel}==1}selected{fouze}{/ruguo}> 一级分类 </option>
						<option {ruguo:{a_classLevel}==2}selected{fouze}{/ruguo} value="2"> 二级分类 </option>
					</select>
					{/liebiao}
				</div>
			</li>
			<li>
				<label>父类名称：</label>
				<div class="controls">
					<div id="nullParent">顶 级 类</div>
					<select id="haveParent" name="haveParent" style="width:10em;">
					{liebiao2:B_askClass^0^a_classid asc^a_classLevel=1}
						{liebiao:B_askClass^0^a_classid asc^a_classid={<a_classid>}}
						<option {hanshu:GetSelected@{a_classid},[id]} value="{a_classid}">{a_className}</option>
						{/liebiao}{/liebiao2}
					</select>
				</div>
			</li>
			<li class="act">
				<label></label>
				<div class="controls">
					<input type="submit" id="Submit" name="Submit" value="修改" class="btn btn-primary" />
					<input type="button" id="back" name="back" value="返回" class="btn btn-primary" onclick="javascript:window.history.go(-1);" />
				</div>
			</li>
		</ul>
		</form>
	</div>
	
</div>
	
</body>
</html>